package com.nice.base.service.impl;

import java.util.List;

import com.nice.base.dao.BaseDao;
import com.nice.base.service.BaseService;


public class BaseServiceImpl<T> implements BaseService<T>{
	
	private BaseDao baseDao;

	public void setbaseDao(BaseDao baseDao) {
		this.baseDao = baseDao;
	}

	@Override
	public void save(T entity) {
		this.baseDao.save(entity);
	}
	
	@Override
	public void update(T entity) {
		this.baseDao.update(entity);
	}
	
	@Override
	public void delete(T entity) {
		this.baseDao.delete(entity);
	}


	@Override
	public List<T> find(T entity) {
		return this.baseDao.find(entity);
	}


}
